package sample.note.storage;

import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;

import java.util.Map;

import sample.note.AppWrapper;

public class Account {
    public static final String TABLE_NAME = "ACCOUNT";

    public static final String COLUMN_ID = "ID";
    public static final String COLUMN_NAME = "NAME";

    public void insert(Map<String, String> row) {
        SQLiteDatabase db = Repository.getInstance(AppWrapper.getContext()).getReadableDatabase();
        ContentValues contentValues = new ContentValues();
        contentValues.put(COLUMN_NAME, row.get(COLUMN_NAME));
        db.insert(TABLE_NAME, null, contentValues);
        db.close();
    }
}
